﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WebHome_API.Migrations
{
    /// <inheritdoc />
    public partial class UpdateData018 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "CreateDate",
                table: "Novels",
                newName: "LastUpdateTime");

            migrationBuilder.RenameColumn(
                name: "GalID",
                table: "FileTagLink",
                newName: "FileID");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "LastUpdateTime",
                table: "Novels",
                newName: "CreateDate");

            migrationBuilder.RenameColumn(
                name: "FileID",
                table: "FileTagLink",
                newName: "GalID");
        }
    }
}
